﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MantenimientoProductos.aspx.cs" Inherits="CapaPresentacion.MantenimientoProductos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

        .style26
        {
            width: 6px;
            height: 6px;
        }
        .style45
        {
            width: 6px;
            height: 5px;
        }
        .style48
        {
            height: 5px;
        }
        .style73
        {
            width: 2px;
            height: 1px;
            text-align: left;
        }
        .style74
        {
            width: 6px;
            height: 1px;
        }
        .style84
        {
            width: 2px;
            height: 6px;
            text-align: left;
        }
        .style88
        {
            height: 5px;
            text-align: left;
        }
        .style90
        {
            height: 6px;
        }
        .style91
        {
            width: 81px;
            height: 5px;
        }
        .style92
        {
            width: 81px;
            height: 1px;
        }
        .style93
        {
            width: 63px;
        }
        .style95
        {
            width: 63px;
            height: 5px;
        }
        .style96
        {
            width: 63px;
            height: 1px;
        }
        .style97
        {
            width: 2px;
            height: 10px;
            text-align: left;
        }
        .style98
        {
            width: 6px;
            height: 10px;
        }
        .style100
        {
            width: 81px;
            height: 10px;
        }
        .style105
        {
            width: 40px;
            height: 10px;
            text-align: left;
        }
        .style109
        {
            width: 40px;
            height: 6px;
            text-align: left;
        }
        .style110
        {
            width: 40px;
            height: 5px;
        }
        .style111
        {
            width: 40px;
            height: 1px;
        }
        .style112
        {
            width: 53px;
            height: 10px;
        }
        .style113
        {
            width: 53px;
            height: 6px;
        }
        .style114
        {
            width: 53px;
            height: 5px;
        }
        .style115
        {
            width: 53px;
            height: 1px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel1" runat="server" Height="150px" Width="800px">
                 <center style="text-align: center">
                <table style="width:60%; height: 146px;" border="0">
                    <tr>
                        <td class="style97">
                            <asp:Label ID="Label8" runat="server" Text="Producto:"></asp:Label>
                        </td>
                        <td class="style105">
                            <asp:TextBox ID="txtIdProducto" runat="server" Width="61px"></asp:TextBox>
                        </td>
                        <td class="style98">
                            &nbsp;</td>
                        <td class="style112">
                            <asp:Label ID="Label7" runat="server" Text="Categoría:"></asp:Label>
                        </td>
                        <td class="style100">
                            <asp:DropDownList ID="cboCategoria" runat="server" Height="16px" 
                                onselectedindexchanged="cboCategoria_SelectedIndexChanged" Width="111px">
                            </asp:DropDownList>
                        </td>
                        <td class="style93" rowspan="3">
                            <asp:Image ID="imgProducto" runat="server" Height="60px" 
                                ImageUrl="~/imagenes/abarr.jpg" Width="114px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style88">
                            <asp:Label ID="Label2" runat="server" Text="Nombre:"></asp:Label>
                        </td>
                        <td class="style48" colspan="3">
                            <asp:TextBox ID="txtNombre" runat="server" Width="229px" 
                                style="text-align: left"></asp:TextBox>
                        </td>
                        <td class="style91">
                        </td>
                    </tr>
                    <tr>
                        <td class="style88">
                            <asp:Label ID="Label3" runat="server" Text="Descripción:"></asp:Label>
                        </td>
                        <td class="style88" colspan="3">
                            <asp:TextBox ID="txtDescripcion" runat="server" Width="201px"></asp:TextBox>
                        </td>
                        <td class="style91">
                            <asp:Button ID="btnFoto" runat="server" Height="25px" onclick="Button1_Click" 
                                Text="Mostrar Foto" Width="117px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style84">
                            <asp:Label ID="Label4" runat="server" Text="Precio:"></asp:Label>
                        </td>
                        <td class="style109">
                            <asp:TextBox ID="txtPrecio" runat="server" style="margin-right: 6px" 
                                Width="49px"></asp:TextBox>
                        </td>
                        <td class="style26">
                            <asp:Label ID="Label5" runat="server" Text="Stock:"></asp:Label>
                        </td>
                        <td class="style113">
                            <asp:TextBox ID="txtStock" runat="server" style="margin-bottom: 0px" 
                                Width="45px"></asp:TextBox>
                        </td>
                        <td class="style90" colspan="2">
                            <asp:FileUpload ID="FileUpload1" runat="server" Width="235px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style88">
                            <asp:Button ID="btnNuevo" runat="server" onclick="btnNuevo_Click" Text="Nuevo" 
                                Width="64px" />
                        </td>
                        <td class="style110">
                            <asp:Button ID="btnGrabar" runat="server" onclick="btnGrabar_Click" 
                                Text="Grabar" Width="87px" />
                        </td>
                        <td class="style45">
                            <asp:Button ID="btnBuscar" runat="server" onclick="btnBuscar_Click" 
                                Text="Buscar" Width="76px" />
                        </td>
                        <td class="style114">
                            <asp:Label ID="lblOperacion" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td class="style91">
                            <asp:Label ID="Label6" runat="server" Text="Foto:"></asp:Label>
                        </td>
                        <td class="style95">
                            <asp:TextBox ID="txtFoto" runat="server" Width="80px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style73">
                            &nbsp;</td>
                        <td class="style111">
                            &nbsp;</td>
                        <td class="style74">
                            &nbsp;</td>
                        <td class="style115">
                            &nbsp;</td>
                        <td class="style92">
                            &nbsp;</td>
                        <td class="style96">
                            &nbsp;</td>
                    </tr>
                </table>

                 </center>
                     LISTADO PRODUCTO<br />
        <asp:GridView ID="gvProductos" runat="server" AutoGenerateColumns="False" 
            Height="75px" Width="802px" CellPadding="4" ForeColor="#333333" 
                GridLines="None" style="margin-top: 0px; text-align: left;">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="IdProducto" HeaderText="Producto" />
                <asp:BoundField DataField="Nombre" HeaderText="Nombre" />
                <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" />
                <asp:BoundField DataField="Precio" HeaderText="Precio" />
                <asp:BoundField DataField="Stock" HeaderText="Stock" />
                <asp:BoundField DataField="IdCategoria" HeaderText="Categoria" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>

                     <br />
    </asp:Panel>
        <br />
</asp:Content>
